package com.zwjk.config;

import com.netflix.client.config.IClientConfig;
import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;

/**
 * @author : Jixiaohu
 * @Date : 2019-04-11.
 * @Time : 19:43.
 * @Description :
 */
//@Configuration
public class TestConfiguration {

    @Autowired
    IClientConfig config;

    @Bean
    public IRule ribbonRule() {
        return new RandomRule();
    }

}
